-- GENERATED SPELL FOR [Coldarra Scalesworn] --


function spell0_25717(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(12748,pUnit)
pUnit:RegisterEvent('Sorts_25717', 5343, 1)
end

function spell1_25717(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25717', 15000, 1)
end

function Sorts_25717(pUnit, Event)
local choix_sorts_25717 = math.random(0, 1)
if choix_sorts_25717 == 0 then
pUnit:RegisterEvent('spell0_25717', 1, 1)
end
if choix_sorts_25717 == 1 then
pUnit:RegisterEvent('spell1_25717', 1, 1)
end
end

function mob25717_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25717', math.random(1500, 3000), 1)
end

function mob25717_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25717_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25717_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25717, 1, 'mob25717_Action')
RegisterUnitEvent(25717, 2, 'mob25717_Leave')
RegisterUnitEvent(25717, 3, 'mob25717_Kill')
RegisterUnitEvent(25717, 4, 'mob25717_Die')
